TransitionSetting = function (editor) {
    //this.setting = this.getCurrentAttributeSetting();
    this.editor = editor
    this.setting = this.getCurrentAttributeSetting("transition");
};

mxUtils.extend(TransitionSetting, AttributeSetting);

/**
 * 渲染转移基本属性设置
 */
TransitionSetting.prototype.renderBasicAttr = function () {
    var ba = $('#ef_region_basicAttr');
    var as = this.setting;
    var cell = this.getCurrentCell();
    $('#name', ba).attr('value', as.getAttribute('Name'));
    $('#displayName', ba).attr('value', as.getAttribute('DisplayName'));
    $("#condition").val(as.getAttribute('Condition'));
    $('#decisionTypeHide').val(as.getAttribute('DecisionType'));
    $('#conditionNameHide').val(as.getAttribute('ConditionName'));
    $('#ext1Hide').val(as.getAttribute('Ext1'));
    $('#ext2Hide').val(as.getAttribute('Ext2'));
    $('#ext3Hide').val(as.getAttribute('Ext3'));
    $('#ext4Hide').val(as.getAttribute('Ext4'));
};

/**
 * 更新转移基本属性设置
 */
TransitionSetting.prototype.updateBasicAtrr = function () {
    //获取活动属性配置
    var ba = $('#ef_region_basicAttr');
    var name = $('#name', ba).val();
    var displayName = $('#displayName', ba).val();
    var condition = $("#condition").val();
    var decisionType = $("#decisionType").val();
    var conditionName = $("#conditionName").val();
    var ext1 = $("#ext1").val();
    var ext2 = $("#ext2").val();
    var ext3 = $("#ext3").val();
    var ext4 = $("#ext4").val();

    //设置基本属性
    var as = this.setting;
    as.setAttribute('Name', name);
    as.setAttribute('DisplayName', displayName);
    as.setAttribute('Condition', condition);
    as.setAttribute('DecisionType', decisionType);
    as.setAttribute('ConditionName', conditionName);
    as.setAttribute('Ext1', ext1);
    as.setAttribute('Ext2', ext2);
    as.setAttribute('Ext3', ext3);
    as.setAttribute('Ext4', ext4);

    this.updateAttributeSetting();
};